package com.frxuexi.lib_base.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface FocuseDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addFocuse(focuseEntity: FocuseEntity):Long

    @Query("select * from focuse where authorId=:uid")
    fun isFocuse(uid:Long):FocuseEntity

    @Delete
    fun deleteFocuse(focuseEntity: FocuseEntity):Int
}